package com.simpilemvc.web.context;

import java.util.HashMap;
import java.util.Map;

/**
 * @author yangwenkui
 * @version v2.0
 * @time 2016年10月28日 下午8:58:35
 */
public class HandlerMapping {

	private static Map<String, ActionModel> handlerMapper = new HashMap<String, ActionModel>();
	
	public static boolean addMapping(String path,ActionModel actionModel){
		handlerMapper.put(path, actionModel);
		return true;
	}
	
	public static ActionModel getMapping(String path){
		return handlerMapper.get(path);
	}
	
}
